package com.ktjiaoyu;

import com.ktjiaoyu.config.JavaConfig;
import com.ktjiaoyu.config.SpringConfig;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Component;

@Configuration //非必须
//扫描配置类所在的包
//@ComponentScan(basePackages = "com.ktjiaoyu.config")
//导入主配置文件,主配置文件导入le其他配置文件
@Import(SpringConfig.class)
public class MainApplication {
    //可以定义一些全局的Bean对象
}
